package bsf.baseservice.businessmq.common;

import bsf.baseservice.businessmq.systemruntime.MQMessage;

/**
 业务消息响应
 
 <typeparam name="T"></typeparam>
*/
public class BusinessMQResponse<T>
{
	/** 
	 消息响应实体
	 
	*/
	public T ObjMsg;
	/** 
	 消息内部响应
	 
	*/
	public Object InnerObject;
	/** 
	 标记消息已处理,请在消息处理成功后调用,否则消息在下次重启或消息循环传递终止
	 
	*/
	public final void markFinished()
	{
		MQMessage innerobject = (MQMessage)((InnerObject instanceof MQMessage) ? InnerObject : null);
		innerobject.markFinished();

	}
}